cd /d %~dp0
mkdir ping
cd ping
del ping_server.stop
cd ..
del ping_server_loop

set loop=1
:re
if exist ./ping/ping_server.stop goto end
echo %loop% >>ping_server_loop

beta_ping -deamon:./ping

ping 127.0.0.1 -n 1
set /a loop+=1
goto re
:end